package com.workcell.workdata.xthings.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author 廖博文
 * @Date 2022/12/5 11:48
 * @Description
 */
public interface DataBaseAndRealTimeVo {

	@Data
	class DataSnapshotInfoVo {

		@NotNull(message = "快照ID不能为空")
		@ApiModelProperty(value="快照ID")
		String codeId;

		@NotNull(message = "硬件类型不能为空")
		@ApiModelProperty(value="硬件类型")
		String hardwareType;

	}

	@Data
	class DataRealTimeInfoVo {

		@NotNull(message = "硬件编号不能为空")
		@ApiModelProperty(value="硬件编号")
		String deviceNo;

		@NotNull(message = "硬件类型不能为空")
		@ApiModelProperty(value="硬件类型")
		String hardwareType;

		@NotNull(message = "厂家编码不能为空")
		@ApiModelProperty(value="厂家编码")
		String manufacturerCode;

	}

	@Data
	class DataHourLineChartVo {

		@NotNull(message = "硬件编号不能为空")
		@ApiModelProperty(value="硬件编号")
		String deviceNo;

		@NotNull(message = "硬件类型不能为空")
		@ApiModelProperty(value="硬件类型")
		String hardwareType;

//		@NotNull(message = "厂家编码不能为空")
		@ApiModelProperty(value="厂家编码")
		String manufacturerCode;

	}

	@Data
	class DataXOTOCVo {

		@NotNull(message = "硬件编号不能为空")
		@NotBlank(message = "硬件编号不能为空")
		@ApiModelProperty(value="硬件编号")
		String deviceNo;

		@NotNull(message = "硬件类型不能为空")
		@NotBlank(message = "硬件类型不能为空")
		@ApiModelProperty(value="硬件类型")
		String hardwareType;

		@NotNull(message = "厂家编码不能为空")
		@NotBlank(message = "厂家编码不能为空")
		@ApiModelProperty(value="厂家编码")
		String manufacturerCode;

	}

}
